package com.seezoon.infrastructure.tcp.jt808;

import com.seezoon.infrastructure.tcp.common.Encoding;
import com.seezoon.infrastructure.tcp.common.MessageField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @see com.seezoon.infrastructure.tcp.codec.JT808#终端注册
 */
@Getter
@Setter
@ToString
public class JT0100 {

    @MessageField(desc = "省域ID")
    private int provinceId;

    @MessageField(desc = "市县域ID")
    private int cityId;

    @MessageField(desc = "制造商ID", length = 5, encoding = Encoding.UTF8)
    private String manufacturerId;

    @MessageField(desc = "终端型号", length = 20, encoding = Encoding.UTF8)
    private String deviceModel;

    @MessageField(desc = "终端ID", length = 7, encoding = Encoding.UTF8)
    private String deviceNo;

    @MessageField(desc = "车辆颜色")
    private short plateColor;

    @MessageField(desc = "车牌号", encoding = Encoding.GBK)
    private String plateNo;

}
